<template>
    <div>
        <div>这是demo1</div>
        <demo2 :testInfo="demo1Name" :testage="demo1Age" @test3="test3"/>
    </div>
</template>

<script>
    import demo2 from './demo2.vue';
    export default {
        components: {
            demo2
        },
        data() {
            return {
                demo1Name: '测试11',
                demo1Age: 11,
            }
        },
        methods: {
            test3(val){
                console.log(val);
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>
